﻿
#region Comment

/*
 * Project：    ExtAspNet
 * 
 * FileName:    BoxLayoutPosition.cs
 * CreatedOn:   2012-01-10
 * CreatedBy:   sanshi.ustc@gmail.com
 * 
 * 
 * Description：
 *      ->
 *   
 * History：
 *      ->
 * 
 * 
 * 
 * 
 */

#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace ExtAspNet
{
    /// <summary>
    /// HBox或者VBox的位置
    /// </summary>
    public enum BoxLayoutPosition
    {
        Left,
        Center,
        Right 
    }

    /// <summary>
    /// HBox或者VBox的位置的名称
    /// </summary>
    internal static class BoxLayoutPositionHelper
    {
        public static string GetName(BoxLayoutPosition type)
        {
            string result = String.Empty;

            switch (type)
            {
                case BoxLayoutPosition.Left:
                    result = "start";
                    break;
                case BoxLayoutPosition.Center:
                    result = "center";
                    break;
                case BoxLayoutPosition.Right:
                    result = "end";
                    break;
                default:
                    result = "start";
                    break;
            }

            return result;
        }
    }
}